<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div>中国移动10086</div>
		<div age="34" teacher="laohuang"><span>中国联通10010</span></div>
		<div>中国电信10000</div>
	</body>
	<script type="text/javascript" src="../../js/jquery-1.4.1.js" ></script>
	<script>
		jQuery(function(){
			
			//jQuery对象转化为dom对象
			var $div = $("div");
			console.log($div.length);
			console.log($div.html());
			
			
			//jquery对象如何转化成js对象
			
			var div = $div[0];
			console.log(div.innerHTML);
			
			//dom对象转化为jQuery对象
			var div10086 = document.getElementsByTagName("div")[0];
			console.log(div10086.innerText);
			
			var $div10086= $(div10086);
			console.log($div10086.html());
		});
	</script>
</html>
